﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
using Shrestha.Data.Database;
using MySql.Data.MySqlClient;

namespace Shrestha.Data
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            MySqlManager m = new MySqlManager();
            DateTime dt = DateTime.Now;
            m.Execute3Query("select latitude, longitude, eventdate from war where latitude is not null and longitude is not null and eventdate is not null order by eventdate limit 5000", new MySqlConnection("Data Source=192.168.0.11;Database=infovis;User ID=ayush;Password=antimatter"));
            Console.Write(DateTime.Now.Subtract(dt).ToString());
        }
    }
}
